package cn.edu.scau.cmi.chensixiao.abstractFactory.factory;

import cn.edu.scau.cmi.chensixiao.abstractFactory.domainAbstractClass.Insurance;

public abstract class AbstractInsuranceFactory {
	public static AbstractInsuranceFactory getFactory(String company) {
		switch(company) {
		case"PICC":
			return new PICCInsuranceFactory();
		case"PingAn":
			return new PingAnInsuranceFactory();
		}
		return null;
	}
	
	public abstract Insurance creatCarInsurance();
	public abstract Insurance creatDriverInsurance();
	public abstract Insurance creatOtherInsurance();
}
